#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

typedef struct TreeNode
{
	struct TreeNode* left;
	struct TreeNode* right;
}TreeNode;

int TreeSize(struct TreeNode* root)
{
	return root == NULL ? 0 : TreeSize(root->left) + TreeSize(root->right) + 1;
}
